package com.zyb.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.zyb.domain.Brand;
import com.zyb.domain.Goods;
import com.zyb.domain.Type;

public interface GoodsService {
	/**
	 * 
	 * @Title: list 
	 * @Description: 列表
	 * @param pageNum
	 * @param pageSize
	 * @return
	 * @return: PageInfo<Goods>
	 */
	PageInfo<Goods> list(Integer pageNum,Integer pageSize);

	int add(Goods goods);

	List<Brand> brands();

	List<Type> types();

	Goods toUpda(Integer id);

	int update(Goods goods);

	int dele(Integer id);
}
